package com.yunhe.inspect.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName DataInspectPlanBo
 * @Description TODO
 * @Author HeTao
 * @Date 2021/11/9 14:56
 * @Version 1.0
 **/
@Data
@ApiModel("新增巡检计划入参")
public class DataInspectPlanBo implements Serializable {

    private static final long serialVersionUID = -6391421938643893936L;

    /**
     * 计划id
     */
    @ApiModelProperty("计划id")
    private Integer id;

    /**
     * 巡检计划标题
     */
    @ApiModelProperty(value = "巡检计划标题",required = true)
    private String inspectPlanTitle;


    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门",required = true)
    private Long orgId;

    /**
     * 适用范围 00 全部 非全部 真实项目id/房源id
     */
    @ApiModelProperty(value = "适用范围 00 全部 非全部 真实园区id-房源id;真实园区id-房源id;",required = true)
    private List<String> scopeOfUse;

    /**
     * 巡检类型
     */
    @ApiModelProperty(value = "巡检类型",required = true)
    private String inspectType;

    /**
     * 计划周期
     */
    @ApiModelProperty(value = "计划周期",required = true)
    private String inspectPlanCycle;

    /**
     * 计划开始时间
     */
    @ApiModelProperty(value = "计划开始时间",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inspectPlanStartTime;

    /**
     * 计划结束时间
     */
    @ApiModelProperty(value = "计划结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inspectPlanEndTime;

    @ApiModelProperty(value = "巡检检查项目id数组",required = true)
    private List<Integer> itemPlanIds;
}
